/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package skat.comparators;

import rlpw.lang.Factory.FactoryEntry;
import skat.Card;
import skat.games.Game;

/**
 *
 * @author weinpau
 */
@FactoryEntry(Game.NULL)
public class ComparatorNull extends Comparator {

    @Override
    public int getSortIndex(Card k) {
        if (k.rank() == 6) {
            return 7 * k.suit() + 3;
        } else if (k.rank() < 3 || k.rank() > 6) {
            return 7 * k.suit() + (k.rank() + 1);
        } else {
            return 7 * k.suit() + k.rank();
        }
    }
}
